.fv-grid {
    position: relative;
    margin: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    flex: 1;
    color: #424347;
}

.fv-grid-header {
    position: relative;
    display: flex;
    z-index: 2;
    color: #5a5e66;
    font-weight: 400;
    overflow: hidden;
    border-bottom: 1px solid #e4e7ef;
    background-color: #f4f5f9;
}

.fv-grid-header-corner {
    background-color: #f4f5f9;

    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    padding: 0.375rem 0;
}

.fv-grid-header-left-fixed,
.fv-grid-header-right-fixed {
    position: relative;
    overflow: hidden;
    background-color: #f4f5f9;
    z-index: 1;
}

.fv-grid-header-left-fixed {
    box-shadow: 4px 0 10px 0 rgb(31 35 41 / 6%);
}

.fv-grid-header-right-fixed {
    box-shadow: -4px 0 10px 0 rgb(31 35 41 / 6%);
}

.fv-grid-header-primary {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f4f5f9;
}

.fv-grid-header-columns {
    position: relative;
}

.fv-grid-header-cell {
    position: absolute;
    border: 1px solid #333;
    top: 0;

    border-style: solid;
    border-width: 1px;
    border-color: transparent;

    padding: 0.4375rem 0.75rem;
    line-height: 18px;
    overflow: hidden;
    display: flex;
    color: #2d2f33;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.fv-grid-header-cell::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: calc(-1.125rem / 2);
    display: block;
    height: 1.125rem;
    width: 1px;
    background-color: #e6e9f0;
}

.fv-grid-header-group-columns .fv-grid-header-cell {
    border-bottom-color: #eaecf3;
    border-right-color: #eaecf3;
    padding: 0 0.75rem;
    text-align: center;
}

.fv-grid-header-group-columns .fv-grid-header-cell::after {
    display: none;
}

.fv-grid-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;

    overflow: hidden;
    z-index: 0;
    background: #fff;
}

.fv-grid-content-hover {
    cursor: pointer;
}

.fv-grid-content-side {
    position: relative;
}

.fv-grid-content-primary {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.fv-grid-content-left-fixed,
.fv-grid-content-right-fixed {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.fv-grid-content-left-fixed {
    box-shadow: 4px 0 10px 0 rgb(31 35 41 / 6%);
    background-color: #fff;
}

.fv-grid-content-right-fixed {
    box-shadow: -6px 0 6px -4px rgb(0 0 0 / 12%);
    background-color: #fff;
}

.fv-grid-data {
    height: 100%;
}

.fv-grid-merge-date {
    position: absolute;
    top: 0;
}

.fv-grid-row {
    left: 0;
    position: absolute;
}
.fv-datagrid-strip .fv-grid-row-odd {
    background-color: #fff;
}

.fv-datagrid-strip .fv-grid-row-even {
    background-color: #f7f8fb;
}

.fv-grid-row-hover {
    cursor: pointer;
    color: #424347;
    background: #edf5ff !important;
    border-color: #eaecf3;
}
.fv-grid-row-selected {
    color: #424347 !important;
    border-color: #95bef1;
    background-color: #dae9ff !important;
}

.fv-grid-group-row {
    left: 0;
    position: absolute;
    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    border-bottom-color: #eaecf3;
    background-color: transparent;
    font-weight: 600;
}

.fv-grid-summary-row {
    left: 0;
    position: absolute;
    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    border-bottom-color: #eaecf3;
    background-color: transparent;
    font-weight: 600;
}

.fv-grid-group-row-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.45);
    line-height: 24px;
    padding: 0.25rem 0.75rem;
}

@keyframes rotate-group-collapse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-90deg);
    }
}
.fv-grid-group-row-icon-collapse {
    transform: rotate(-90deg);
}

.fv-grid-cell {
    position: absolute;
    line-height: 26px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    top: 0;

    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    border-bottom-color: #eaecf3;
    background-color: transparent;
    padding: 0 0.75rem;
}

.fv-grid-wrap-content .fv-grid-cell {
    text-overflow: initial;
    overflow: initial;
    white-space: initial;
}

.fv-grid-cell .f-form-control-textarea,
.fv-grid-cell textarea.form-control {
    min-height: initial;
}

.fv-grid-merged-cell {
    border-bottom-color: #eaecf3;
    border-left-color: #eaecf3;
    background-color: #fff;
    text-align: center;
}

.fv-grid-sidebar-row {
    left: 0;
    position: absolute;
    line-height: 24px;

    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    border-bottom-color: #eaecf3;
    background-color: transparent;
}
.fv-datagrid-strip .fv-grid-sidebar-row-odd {
    background-color: #fff;
}

.fv-datagrid-strip .fv-grid-sidebar-row-even {
    background-color: #f7f8fb;
}

.fv-grid-sidebar-row-hover {
    cursor: pointer;
    color: #424347;
    background: #edf5ff !important;
}

.fv-grid-sidebar-row-selected {
    color: #424347 !important;
    background-color: #dae9ff !important;
}

.fv-grid-sidebar-row-checkbox {
    vertical-align: middle;
    margin: 0.25rem 0.5rem 0.25rem 1rem;
}

.fv-grid-sidebar-row-number {
    display: inline-flex;
    width: 32px;
    padding: 0 0.25rem;
}

.fv-grid-content-hover .fv-grid-vertical-scroll {
    opacity: 1;
}

.fv-grid-vertical-scroll {
    opacity: 0;
    position: absolute;
    background-color: transparent;
    right: 0;
    left: auto !important;
    width: 10px;
    cursor: default;
    transition: width 0.2s linear, opacity 0.2s linear, background-color 0.2s linear;
    height: 288px;
    z-index: 1;
}

.fv-grid-vertical-scroll-thumb {
    -webkit-transition: background-color 0.2s linear, width 0.2s ease-in-out;
    transition: background-color 0.2s linear, width 0.2s ease-in-out;
    width: 10px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: absolute;
}

.fv-grid-content-hover .fv-grid-horizontal-scroll {
    opacity: 1;
}

.fv-grid-horizontal-scroll {
    opacity: 0;
    position: absolute;
    background-color: transparent;
    bottom: 0;
    top: auto !important;
    height: 10px;
    cursor: default;
    transition: width 0.2s linear, opacity 0.2s linear, background-color 0.2s linear;
    width: 812px;
    z-index: 1;
}

.fv-grid-horizontal-scroll-thumb {
    -webkit-transition: background-color 0.2s linear, width 0.2s ease-in-out;
    transition: background-color 0.2s linear, width 0.2s ease-in-out;
    height: 10px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: absolute;
}

.fv-grid-header-cell > .fv-column-title {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
}

.fv-grid-header-cell > .fv-column-resize-bar {
    display: block;
    position: absolute !important;
    top: -2px;
    bottom: -2px;
    right: 0;
    margin: 0;
    width: 5px;
    padding: 0;
    cursor: e-resize;
    border: 1px solid transparent;
}

.fv-grid-header-cell:hover > .fv-column-resize-bar {
    border-right: 3px solid #2a87ff;
    border-top: none;
}

.fv-grid-header-cell:hover > .fv-column-handler {
    display: block;
}

.fv-grid-header-cell > .fv-column-handler {
    float: right;
    cursor: pointer;
    display: none;
    color: #2a87ff;
}

.fv-grid-header-cell > .fv-column-handler.fv-column-handler-active {
    display: block !important;
    color: #2a87ff;
}

.fv-grid-header-cell > .fv-column-handler:hover {
    color: #2a87ff;
}

.fv-grid-header-cell > .fv-grid-settings-icon {
    display: block;
    cursor: pointer;
    margin-left: 8px;
}

.fv-datagrid-resize-overlay {
    z-index: 98;
    width: 100%;
    height: 100%;
    cursor: e-resize;
    background: 0 0;
    position: absolute;
}

.fv-datagrid-resize-proxy {
    width: 1px;
    border-left: 1px dashed #2a87ff;
    left: 0;
    display: none;
    position: absolute;
    height: 100%;
    z-index: 99;
}

.fv-datagrid-summary {
    padding: 3px;
    background-color: white;
}

.fv-datagrid-summary .fv-datagird-summary-panel {
    height: 40px;
    background: linear-gradient(90deg, #eff8f8 0, #fffbeb 100%);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.fv-datagrid-summary-title {
    line-height: 40px;
    width: 100px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
}

.fv-datagrid-summary-content {
    display: flex;
    line-height: 40px;
}

.fv-datagrid-summary-field {
    line-height: 40px;
    margin-right: 10px;
}

.fv-datagrid-summary-field-title {
    font-size: 14px;
    margin: 0 16px;
}

.fv-datagrid-summary-field-value {
    color: #ff6c29;
    font-size: 18px;
    font-weight: bold;
}

.fv-datagrid-pagination {
    display: flex;
    flex-direction: row-reverse;
    background-color: #ffffff;
}

.fv-column-handler-popover .popover-body {
    max-width: none;
}

.fv-column-sort-filter-container {
    width: 300px;
}

.fv-column-sort-filter-container .fv-column-filter-section .fv-column-filter-section-title {
    font-size: 15px;
    margin: 10px 0;
}

.fv-column-sort-filter-container .fv-column-filter-section .fv-column-filter-section-editor {
    margin-bottom: 10px;
    max-height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fv-column-sort-filter-container .fv-column-sort-filter-footer {
    display: flex;
}

.fv-column-sort-filter-container .fv-column-sort-filter-footer .fv-column-confirm-section {
    flex: 1;
    display: flex;
    flex-direction: row-reverse;
}

.fv-grid-filter-panel {
    padding: 0px 6px 4px;
}

.fv-grid-settings {
    min-width: 800px;
    min-height: 480px;
}

.fv-grid-settings .f-btn-icon {
    color: #878d99 !important;
}

.fv-grid-settings .f-btn-icon:hover {
    color: #529dff !important;
}

.fv-grid-settings .farris-tabs-header-pre {
    color: #000;
    font-weight: 500;
}

.fv-grid-settings .farris-tabs-header-pre,
.fv-grid-settings .farris-tabs-header-post {
    padding: 0.75rem 0.5rem 0.75rem 1.125rem;
}

.fv-grid-settings .farris-tabs-header {
    margin: 0 !important;
}

.fv-grid-settings .container {
    padding-left: 24px;
    padding-right: 24px;
}

.fv-grid-group-panel {
    border-bottom: 1px solid #e4e7ef;
    background-color: #f4f5f9;
    height: 40px;
}
